{template header}
{php doAction('group_topic_edit_header')}
<div class="midder">

<div class="mc">
<h1>编辑：{$strTopic[title]}</h1>

<form method="POST" action="{SITE_URL}index.php?app=group&ac=topic_edit&ts=do" enctype="multipart/form-data">
<table width="100%">
<tbody>
<tr><td width="100">标题：</td>
    <td><input style="padding:3px 0;width:600px;" type="text" value="{$strTopic[title]}" maxlength="100" size="50" name="title" gtbfieldid="2"></td></tr>

{if $arrGroupType}
<tr><td>帖子分类：</td><td>
<select name="typeid">
<option <!--{if $strTopic[typeid]=='0'}-->selected="select"<!--{/if}--> value="0">请选择</option>
<!--{loop $arrGroupType $key $item}-->
<option <!--{if $item[typeid]==$strTopic[typeid]}-->selected="select"<!--{/if}--> value="{$item[typeid]}">{$item[typename]}</option>
<!--{/loop}-->
</select></td></tr>
{/if}

    <tr>
	<td valign="top">
内容：
    </td><td><textarea style="width:600px;height:150px;font-size:14px;" id="bbcode" name="content">{$strTopic[content]}</textarea></td></tr>
	
<tr><td>图片：</td><td><input type="file" name="picfile" /> (仅支持jpg,gif,png格式图片)</td></tr>
<tr><td>附件：</td><td><input type="file" name="attfile" />  (仅支持zip,rar,dic,txt,pdf,ppt,docx,xls,xlsx格式附件)</td></tr>

<tr><td>视频：</td><td><input style="width:300px;" name="video" /> (仅支持外部视频链接：swf格式)</td></tr>
	
	<tr><td height="50">评论：</td><td><input type="radio" <!--{if $strTopic[iscomment]=='0'}-->checked="select"<!--{/if}-->   name="iscomment" value="0" />允许 <input type="radio" <!--{if $strTopic[iscomment]=='1'}-->checked="select"<!--{/if}-->  name="iscomment" value="1" />不允许</td></tr>
	
    <tr><td></td><td>
	
	<input type="hidden" name="topicid" value="{$strTopic[topicid]}" />
    <input type="submit" class="submit" value="修改"> 
	<a href="{SITE_URL}{tsUrl('group','topic',array('id'=>$strTopic[topicid]))}">返回</a>
	</td></tr>
	
	</tbody></table>
</form>


</div>
</div>
{php doAction('group_topic_edit_footer')}
{template footer}